package com.wing.sell.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.sell.model.entity.FinishedOrder;
import com.wing.sell.model.request.FinishedOrderForm;
import com.wing.sell.model.response.FinishedOrderVo;
import com.wing.sell.model.response.OrderVO;

import java.util.Map;


/**
 * 销售订单表-Service
 *
 * @author
 */
public interface FinishedOrderService extends IService<FinishedOrder> {

    /**
     * 查询成品销售订单
     * @param pg
     * @param params
     * @return
     */
    Page<FinishedOrderVo> pageList4app(Page<FinishedOrderVo> pg, Map params);

    /**
     * 查询订单详情
     * @param id
     * @return
     */
    FinishedOrderVo getDetailBy(Long id);

    /**
     * 添加成品销售
     * @param finishedOrderForm
     * @return
     */
    boolean addInfo(FinishedOrderForm finishedOrderForm);

    /**
     * 修改成品销售
     * @param finishedOrderForm
     * @return
     */
    boolean updateInfo(FinishedOrderForm finishedOrderForm);

    /**
     * 确认提交
     * @param id
     * @return
     */
    boolean submit(Long id);

    /**
     * 审核
     * @param id
     * @return
     */
    boolean audit(Long id);
}
